import request from '@/utils/request'

// 查询盘点记录列表
export function listStockDetail(query) {
  return request({
    url: '/asset/stockDetail/list',
    method: 'get',
    params: query
  })
}

// 查询盘点记录详细
export function getStockDetail(id) {
  return request({
    url: '/asset/stockDetail/' + id,
    method: 'get'
  })
}

// 新增盘点记录
export function addStockDetail(data) {
  return request({
    url: '/asset/stockDetail',
    method: 'post',
    data: data
  })
}

// 修改盘点记录
export function updateStockDetail(data) {
  return request({
    url: '/asset/stockDetail',
    method: 'put',
    data: data
  })
}

// 删除盘点记录
export function delStockDetail(id) {
  return request({
    url: '/asset/stockDetail/' + id,
    method: 'delete'
  })
}
